package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDTO {
    private int page = 1; //页码
    private int index = 1; //页码
    private int pageSize = 10; //每页展示记录数
    private String name; //姓名
    private Integer gender; //性别


    public int getIndex(){
        return (page-1)*pageSize;
    }

}
